import request from '@/utils/request'
// 获取部门信息
export function getOrgan() {
  return request({
    url: '/company/department',
    
  })
}

// 新增部门
export function append(data) {
  return request({
    url: '/company/department',
    method:'post',
    data
  })
}

// 根据id获取部门信息
export function getSector(id) {
  return request({
    url: `/company/department/${id}`,
  
  })
}
// 根据id修改部门信息
export function dateSector(data) {
  return request({
    url: `/company/department/${data.id}`,
    method:'put',
    data
  })
}
// 根据id删除部门信息
export function eleSector(id) {
  return request({
    url: `/company/department/${id}`,
    method:'delete',
   
  })
}